<?php
/* Allows for HTTP Requests that Are Cross-Site */

$url = str_replace(' ','_',urldecode($_GET['u']));
//echo file_get_contents($url);

$opts = array(
  'http'=>array(
    'method' => "GET",
    'header' => "Accept-Encoding: gzip;q=0, compress;q=0\r\n", //Sets the Accept Encoding Feature.
  )
);
$context = stream_context_create($opts);

$fp = fopen($url, 'r', false, $context);
fpassthru($fp);
fclose($fp);

echo $contents;
?>